//
//  LifeDataTool.m
//  laowu
//
//  Created by Northwan on 15/4/30.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "LifeDataTool.h"

@implementation LifeDataTool
+(void)getSafeInfoData:(NSInteger)maxId success:(void (^)(SafeInfoRes *))success failure:(void (^)(NSError *))failure{
    NSMutableDictionary *param =[NSMutableDictionary dictionary];
    [param setObject:APP_KEY_VALUE forKey:APP_KEY_KEY];
    [param setObject:[NSNumber numberWithInteger:maxId] forKey:@"max_id"];
    [self getWithUrl:[NSString stringWithFormat:@"%@api/safe/lifelist.json",BASE_URL] param:param resultClass:[SafeInfoRes class] success:success failure:failure];
}
+(void)getLifeInfoData:(NSInteger)maxId success:(void (^)(SafeInfoRes *))success failure:(void (^)(NSError *))failure{
    NSMutableDictionary *param =[NSMutableDictionary dictionary];
    [param setObject:APP_KEY_VALUE forKey:APP_KEY_KEY];
    [param setObject:[NSNumber numberWithInteger:maxId] forKey:@"max_id"];
    [self getWithUrl:[NSString stringWithFormat:@"%@api/happylife/lifelist.json",BASE_URL] param:param resultClass:[SafeInfoRes class] success:success failure:failure];
}
@end
